<admintpl file="apiheader"/>
<title>赛程信息列表</title>
<body class="J_scroll_fixed" oncontextmenu='return false' ondragstart='return false' onselectstart ='return false' onselect='document.selection.empty()' oncopy='document.selection.empty()' onbeforecopy='return false' onmouseup='document.selection.empty()'>
<div class="tc-main">
   	<if condition="$out203 || $out204 || $out401 || $out404">
        <table cellpadding="2" cellspacing="2" width="100%" class="table table-hover">
          <tbody>
          	<if condition="$out203">
	            <tr><td>
	   					{$out203.code} - {$out203.info}
		        </td></tr>
			</if>
          	<if condition="$out204">
	            <tr><td>
	   					{$out204.code} - {$out204.info}
		        </td></tr>
			</if>
          	<if condition="$out401">
	            <tr><td>
	   					{$out401.code} - {$out401.info}
		        </td></tr>
			</if>
          	<if condition="$out404">
	            <tr><td>
	   					{$out404.code} - {$out404.info}
		        </td></tr>
			</if>
          </tbody>
        </table>
			<else />
			<style type="text/css">
			.table{
				width: 96%;
				margin: 0 2%;
			}
			</style>
      <table class="table table-hover">
    <thead>
      <tr>
        <th>队员</th>
        <th>进球</th>
        <th>红牌</th>
        <th>黄牌</th>
   	<if condition="$interviewer['roleTypeID'] gt 20100 && $interviewer['roleTypeID'] lt 20500">
        <th>
			<a href="{:U('Fixtures/add',array('matchid'=>$matchid,'teamid'=>$teamid,'userid'=>$userid))}">添加</a>
        </th>
	</if>
      </tr>
    </thead>
    <tbody>
   	<if condition="$playerscores">
    <foreach name="playerscores" item="playerscore">
      <tr>
        <td>
        	<div class='emoji'>
				<php>
					for ($r = 0;$r<count($userroles);$r++) {
						if($userroles[$r]['id'] == $playerscore['userroleid']){
							for ($u = 0;$u<count($users);$u++) {
								if($userroles[$r]['relatedUserID'] == $users[$u]['id']){
								 	echo preg_replace_callback ( '/@E(.{6}==)/', function ($b) {
													return base64_decode ( $b [1] );
											}, $users[$u]['nickname'] );
								}
							}
						}
					}
				</php>
        	</div>
        </td>
        <td>{$playerscore.goals}</td>
        <td>{$playerscore.red_card}</td>
        <td>{$playerscore.yellow_card}</td>
   		<if condition="$interviewer['roleTypeID'] gt 20100 && $interviewer['roleTypeID'] lt 20500">
	    	<td>
	    		<a href="{:U('Fixtures/edit',array('id'=>$playerscore['id'],'matchid'=>$matchid,'teamid'=>$teamid,'userid'=>$userid))}">修改</a>
	    	</td>
		</if>
      </tr>
    </foreach>
    <else />
    		<tr><td colspan="5">暂无数据，请联系管理员添加！</td></tr>
    </if>
    </tbody>
  </table>
</div>
	</if>
<script>
function stop(){
return false;
}
document.oncontextmenu=stop;

$('.emoji').emoji();
</script>
<script type="text/javascript" src="__ROOT__/statics/js/common.js"></script>
</body>
</html>